class CreateBaseMaterials < ActiveRecord::Migration
  def self.up
    create_table :base_materials do |t|
      t.string :name
      t.text   :description
      t.string :mytpe              #蔬菜: vegetable, 肉：meat
      t.string  :image
      t.integer :price
      t.timestamps
    end
  end

  def self.down
    drop_table :base_materials
  end
end
